package cn.swust.score.service.impl;

import java.util.List; 
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; 
import cn.swust.score.dao.StageDao;
import cn.swust.score.pojo.Stage;
import cn.swust.score.service.StageService; 

@Service
public class StageServiceImpl implements StageService{

	@Autowired
	public StageDao stagedao;
	
	@Override
	public int delById(Integer id) {
		return stagedao.delById(id);
	}

	@Override
	public int save(Stage record) {
		return stagedao.save(record);
	}

	@Override
	public Stage getById(Integer id) {
		return stagedao.getById(id);
	}

	@Override
	public int edit(Stage record) {
		return stagedao.editById(record);
	}

	@Override
	public List<Stage> list(Integer scoreInfoId) {
		 return stagedao.list(scoreInfoId);
	}

}
